.search-box {
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  overflow: hidden;

  .search-input {
    background-color: transparent;
    border: none;
    list-style: none;
    box-sizing: border-box;
    margin: 0;
    outline-style: none;
    flex-grow: 1;
    padding: 0px 5px;
  }

  .search-icon {
    width: 20%;
    max-width: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;

    &:hover {
      animation: filterColor 1s infinite;
    }

    @keyframes filterColor {
      0% {
        filter: hue-rotate(0deg);
      }

      100% {
        filter: hue-rotate(360deg);
      }
    }
  }
}

.search-result-box {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s;

  .result-content {
    height: 100%;
    display: flex;
    flex-direction: column;

    .result-title {
      display: flex;
      justify-content: space-between;
      user-select: none;

      &>div {
        padding: 5px 10px;
      }
    }

    .result-body {
      flex-grow: 1;
      overflow-y: auto;

      .car-list {
        display: flex;
        flex-direction: column;
        text-align: left;
        padding: 5px 0px;
        cursor: pointer;

        &>div {
          padding: 0px 10px;
        }

        .text {
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
        }

        .body {
          min-height: 37.65px;
          overflow: hidden;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-line-clamp: 2;
          -webkit-box-orient: vertical;
        }
      }
    }

    .result-foot {
      padding: 5px;
      user-select: none;
      text-align: center;
    }
  }
}

.search-result-box-show {
  opacity: 1;
  pointer-events: all;
}